package com.xkh.demo3.controller;

//import com.xkh.demo3.entity.SystemLog;
//import com.xkh.demo3.mapper.SystemLogMapper;
import com.xkh.demo3.entity.SystemLog;
import com.xkh.demo3.mapper.SystemLogMapper;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@Api(tags = "日表分表")
public class SystemLogController {

    @Autowired
    private SystemLogMapper systemLogMapper;

    @GetMapping("/select")
    @ApiOperation("查询")
    public List<SystemLog> select(){
        return systemLogMapper.list();

    }
}
